from django.test import TestCase

# Create your tests here.
import requests

resp = requests.get('http://sohu.com/index.html')
print(resp.text)

resp = requests.get("http://www.sohu.com/upload/images/server/ghs.png/logos/doodles/2020/memorial-day-2020-united-states-6753651837108732-s.png")
with open('memorial-day-2020-united-states-6753651837108732-s.png', 'wb') as file :
    file.write(resp.content)